# -*- coding: utf-8 -*-
# 数据库连接
SQLALCHEMY_DATABASE_URI = 'mysql+cymysql://root:root@localhost/teachermanager'

# Debug模式开关
DEBUG = True
# 加密的密钥
SECRET_KEY = '\x88D\xf09\x91\x07\x98\x89\x87\x96\xa0A\xc68\xf9\xecJ:U\x17\xc5V\xbe\x8b\xef\xd7\xd8\xd3\xe6\x98*4'
# RECAPTCHA配置
RECAPTCHA_PUBLIC_KEY = "6LeBzVwUAAAAAAbLsJ5U5EjlF5ouu6VZ0hsIojMh"
RECAPTCHA_PRIVATE_KEY = "6LeBzVwUAAAAABDRSRcXxzsKnW1cwNvIokeeyXtG"

# Email 配置
MAIL_SERVER = 'smtp.exmail.qq.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USE_TSL = False
MAIL_USERNAME = 'hello@yushu.im'
MAIL_PASSWORD = 'Bmwzy1314520'
MAIL_SUBJECT_PREFIX = '[鱼书]'
MAIL_SENDER = '鱼书 <hello@yushu.im>'
# CSRF开关
WTF_CSRF_ENABLED = False
WTF_CSRF_CHECK_DEFAULT = False
# 打印实际执行的sql语句:SQLALCHEMY_ECHO=True
SQLALCHEMY_ECHO = True

from datetime import timedelta

# 设置cookie过期时间
REMEMBER_COOKIE_DURATION = timedelta(days=7)
# mongo数据库
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
MONGO_DBNAME = 'Questions'
